 
*********REPLICATION MATERIALS FOR "Social Interactions and Self-Reported Health Among Resettled Refugees." Journal of Health Care for the Poor and Underserved
 
use "/Users/adhik1p/Desktop/rep/Adhikari et al_socialinteractionsandselfreportedhealth1.dta", clear 

*Descriptive stats TABLE 1  N = 352, except missing age and time resettled for one person
asdoc sum physical_health_1 mental_health_1 ingroup_interaction_hrs_1 outgroup_interaction_hrs_1 social_network_count org_participation volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled rohingya english_verbal no_educ educ_post children_no converse celebrate, save(Descriptive Statistics Table 1) dec(2) replace

*Difference in means TABLE 2
ttest physical_health_1 , by(rohingya)
ttest mental_health_1 , by(rohingya)
ttest ingroup_interaction_hrs_1 , by(rohingya)
ttest outgroup_interaction_hrs_1 , by(rohingya)
ttest social_network_count, by(rohingya)
ttest org_participation , by(rohingya)
ttest volunteer_org , by(rohingya)
ttest age_imputed, by(rohingya)
ttest employed_precovid_1 , by(rohingya)
ttest home_ownership , by(rohingya)
ttest healthcare , by(rohingya)
ttest wealth_all , by(rohingya)
ttest time_since_resettled , by(rohingya)
ttest english_verbal , by(rohingya)
ttest no_educ , by(rohingya)
ttest educ_post , by(rohingya)
ttest children_no , by(rohingya)
ttest converse , by(rohingya)
ttest celebrate , by(rohingya)


*Cross tabs for Tables 3 and 4

asdoc tab physical_health_1 ingroup_interaction_hrs_1, col chi2 replace
asdoc tab mental_health_1 ingroup_interaction_hrs_1, col chi2 append

asdoc tab physical_health_1 outgroup_interaction_hrs_1, col chi2 append
asdoc tab mental_health_1 outgroup_interaction_hrs_1, col chi2 append

asdoc tab physical_health_1 social_network_count3, col chi2 append
asdoc tab mental_health_1 social_network_count3, col chi2 append

asdoc tab physical_health_1 org_participation3, col chi2 append
asdoc tab mental_health_1 org_participation3, col chi2 append

asdoc tab physical_health_1 volunteer_org3, col chi2 append
asdoc tab mental_health_1 volunteer_org3, col chi2 append

*Physical health models Table 5
asdoc ologit physical_health_1 ingroup_interaction_hrs_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models revised paper) label nest replace
asdoc ologit physical_health_1  outgroup_interaction_hrs_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models revised paper) label nest 
asdoc ologit physical_health_1  social_network_count age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models revised paper) label nest 
asdoc ologit physical_health_1  org_participation  age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models revised paper) label nest 
asdoc ologit physical_health_1 volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models revised paper) label nest 
asdoc ologit physical_health_1 ingroup_interaction_hrs_1 outgroup_interaction_hrs_1 social_network_count org_participation volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models revised paper) label nest replace 


*Same for mental health Table 6
asdoc ologit mental_health_1 ingroup_interaction_hrs_1  age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models mental health revised paper) nest replace
asdoc ologit mental_health_1 outgroup_interaction_hrs_1  age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models mental health revised paper) nest 
asdoc ologit mental_health_1 social_network_count age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models mental health revised paper) nest 
asdoc ologit mental_health_1 org_participation age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models mental health revised paper) nest 
asdoc ologit mental_health_1 volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models mental health revised paper) nest 
asdoc ologit mental_health_1 ingroup_interaction_hrs_1 outgroup_interaction_hrs_1 social_network_count org_participation volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled, dec(3) save(new ologit models mental health revised paper) nest replace


*Figures 1 and 2, published version excludes the lines for "same" for physical and mental health
ologit physical_health_1 ingroup_interaction_hrs_1 outgroup_interaction_hrs_1 social_network_count org_participation volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled
margins, at(ingroup_interaction_hrs_1 =  (0 1 2 3 4) )
marginsplot

ologit mental_health_1 ingroup_interaction_hrs_1 outgroup_interaction_hrs_1 social_network_count org_participation volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all rohingya time_since_resettled
margins, at(ingroup_interaction_hrs_1 =  (0 1 2 3 4) )
marginsplot

***NOTE: Some of the coefficients and standard errors in Table 7 and 8 do not exactly match the three decimal values in the published version of the manuscript, we think it was due to a rounding issue using the asdoc command in stata. None of the signifance levels in any of the coefficients are affected by these small differences.   

*TABLE 7 FOR REVISED MANUSCRIPT instrumental variable models based on endog test for good instruments
asdoc ivregress 2sls physical_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity (ingroup_interaction_hrs_1 = english_verbal no_educ educ_post ethnicity converse), first save(ivregress models for physical health test) dec(3) nest replace

asdoc ivregress 2sls physical_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity (outgroup_interaction_hrs_1 = english_verbal no_educ educ_post ethnicity converse time_since_resettled), first  dec(3) nest append

asdoc ivregress 2sls physical_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity (social_network_count = english_verbal no_educ educ_post ethnicity time_since_resettled converse celebrate), first dec(3) nest append

asdoc ivregress 2sls physical_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity (org_participation = english_verbal no_educ educ_post ethnicity children_no time_since_resettled converse celebrate ), first dec(3) nest append

asdoc ivregress 2sls physical_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity ( volunteer_org = english_verbal no_educ educ_post ethnicity children_no time_since_resettled converse celebrate ), first dec(3) nest append


*TABLE 8 FOR REVISED MANUSCRIPT instrumental variable models based on endog test for good instruments MENTAL HEALTH MODELS
asdoc ivregress 2sls mental_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity (ingroup_interaction_hrs_1 = english_verbal no_educ educ_post ethnicity converse), first save(ivregress models for mental health) dec(3) nest replace

asdoc ivregress 2sls mental_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity (outgroup_interaction_hrs_1 = english_verbal no_educ educ_post ethnicity  converse), first  dec(3) nest append

asdoc ivregress 2sls mental_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity (social_network_count = english_verbal no_educ educ_post ethnicity time_since_resettled converse celebrate), first dec(3) nest append

asdoc ivregress 2sls mental_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity (org_participation = english_verbal no_educ educ_post ethnicity children_no time_since_resettled converse celebrate ), first dec(3) nest append

asdoc ivregress 2sls mental_health_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all ethnicity ( volunteer_org = english_verbal no_educ educ_post ethnicity children_no time_since_resettled converse celebrate ), first dec(3) nest append

*EXTRAS NOT INCLUDED IN PAPER

*BHUTANESE ONLY--discussed in paper, but not included.

*Physical health models Bhutanese only
asdoc ologit physical_health_1 ingroup_interaction_hrs_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled if bhutanese ==1, dec(3) save(new ologit models bhutanese only revised paper)  nest replace
asdoc ologit physical_health_1  outgroup_interaction_hrs_1 age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled if bhutanese ==1, dec(3)   nest 
asdoc ologit physical_health_1  social_network_count age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled if bhutanese ==1, dec(3)   nest 
asdoc ologit physical_health_1  org_participation  age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled if bhutanese ==1, dec(3)  nest 
asdoc ologit physical_health_1 volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled if bhutanese ==1, dec(3)   nest 
asdoc ologit physical_health_1 ingroup_interaction_hrs_1 outgroup_interaction_hrs_1 social_network_count org_participation volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all  time_since_resettled if bhutanese ==1, dec(3)   nest 

*Same for mental health Bhutanese only
asdoc ologit mental_health_1 ingroup_interaction_hrs_1  age_imputed employed_precovid_1 home_ownership healthcare wealth_all  time_since_resettled if bhutanese == 1, dec(3) save(new ologit models mental health bhutanese only with time revised paper) nest replace
asdoc ologit mental_health_1 outgroup_interaction_hrs_1  age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled if bhutanese == 1, dec(3) nest 
asdoc ologit mental_health_1 social_network_count age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled if bhutanese == 1, dec(3)  nest 
asdoc ologit mental_health_1 org_participation age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled if bhutanese == 1, dec(3)  nest 
asdoc ologit mental_health_1 volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all  time_since_resettled if bhutanese == 1, dec(3)  nest 
asdoc ologit mental_health_1 ingroup_interaction_hrs_1 outgroup_interaction_hrs_1 social_network_count org_participation volunteer_org age_imputed employed_precovid_1 home_ownership healthcare wealth_all time_since_resettled if bhutanese == 1, dec(3)  nest 

